package cn.edu.ctbu.dp01.controller;

import cn.edu.ctbu.dp01.service.TeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@Controller
@RequestMapping("/teacher")
public class TeacherController {

    @Autowired
    private TeacherService teacherService;

    @GetMapping("/list")
    public String getList() {
        //List<Teacher> teachers = teacherService.getAll();
        //model.addAttribute("teachers", teachers);
        return "teacher/list";
    }

    @GetMapping("/search")
    public String getStudent() {
        return "teacher/search";
    }
}
